package tgc.edu.exam.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import tgc.edu.exam.custom.CommonRepository;
import tgc.edu.exam.entity.BookRecord;

@Repository
public interface BookRecordRepository extends CommonRepository<BookRecord, Integer>{

	List<BookRecord> findByUsername(String username);

	List<BookRecord> findByUsernameOrderByIdDesc(String username);

	BookRecord findByByid(String byid);

	List<BookRecord> findByReturnDataLessThanAndState(String date, String string);

}
